package com.hmall.search;

import org.apache.http.HttpHost;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

import java.io.IOException;

/**
 * @author liCuiPing
 * @since 2022/12/9 14:46
 */
@EnableFeignClients(basePackages = "com.hmall.client")
@SpringBootApplication
public class SearchApplication {
    //public static RestHighLevelClient client;

    public static void main(String[] args) {
        SpringApplication.run(SearchApplication.class,args);
    }

    //@Bean
    //static void restClientStart() {
    //    client = new RestHighLevelClient(
    //            RestClient.builder(HttpHost.create("http://192.168.179.131:9200"))
    //    );
    //}

}